home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
AECUR100.ARJ
/
WADDSTR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-03-08
|
462b
|
22 lines
/*------------------------------------------------------------
*
* waddstr.c
*
* copyright (c) 1987,88,89,90 J. Alan Eldridge
*
* adds a string to a window at the current cursor position
*
*----------------------------------------------------------*/
#include "curses.h"
waddstr(win, str)
WINDOW *win;
char *str;
{
while (*str)
if (waddch(win, *str++) == ERR)
break;
return *str ? ERR : OK;
}